
import Layout from './layout'
import Loading from './loading';
import Loger from './loger';
import Drawer from './drawer';
import SvgIcon from './svg-icon';
import Menu from './menu';

const components = [Layout, Loading, Loger,
  Drawer, Menu, SvgIcon]

const install = function (Vue: any, opts = {}) {
  components.forEach(component => {
    Vue.component(component.__name, component);
  });
}

export {
  Layout,
  Loading,
  Loger,
  Drawer,
  SvgIcon,
  Menu
}

export default {
  install,
  Layout,
  Loading,
  Loger,
  Drawer,
  SvgIcon,
  Menu
}
